package com.evony.common.beans 
{
    import flash.events.*;
    import mx.events.*;
    
    public class PlayerDeclaredWarBean extends Object
    {
        public function PlayerDeclaredWarBean(arg1:Object=null)
        {
            super();
            var loc1:*=0;
            _bindingEventDispatcher = new flash.events.EventDispatcher(flash.events.IEventDispatcher(this));
            if (arg1 != null) 
            {
                if (arg1.endTime != null) 
                {
                    this.endTime = arg1.endTime;
                }
                if (arg1.playerName != null) 
                {
                    this.playerName = arg1.playerName;
                }
                if (arg1.startTime != null) 
                {
                    this.startTime = arg1.startTime;
                }
                if (arg1.status != null) 
                {
                    this.status = arg1.status;
                }
            }
            return;
        }

        public function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="";
            loc2 = loc2 + (arg1 + "endTime = " + this.endTime + "\n");
            loc2 = loc2 + (arg1 + "playerName = " + this.playerName + "\n");
            loc2 = loc2 + (arg1 + "startTime = " + this.startTime + "\n");
            loc2 = loc2 + (arg1 + "status = " + this.status + "\n");
            return loc2;
        }

        public function copyTo(arg1:com.evony.common.beans.PlayerDeclaredWarBean):void
        {
            arg1.endTime = this.endTime;
            arg1.playerName = this.playerName;
            arg1.startTime = this.startTime;
            arg1.status = this.status;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.endTime = this.endTime;
            loc1.playerName = this.playerName;
            loc1.startTime = this.startTime;
            loc1.status = this.status;
            return loc1;
        }

        [Bindable]
        public var endTime:Number;

        [Bindable]
        public var status:int;

        [Bindable]
        public var startTime:Number;

        [Bindable]
        public var playerName:String;
    }
}
